package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_flow_optimize")
@Table(appliesTo = "mb_flow_optimize", comment = "规则引擎-流程规则优化表")
public class FlowOptimize extends BaseModel implements Serializable {

	private static final long serialVersionUID = 7144764660160690129L;

	/**
	 * 流程规则ID
	 */
	@ApiModelProperty(value = "流程规则ID")
	@Column(name = "flow_rule_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '流程规则ID'")
	private String flowRuleId;

	/**
	 * 流程ID
	 */
	@ApiModelProperty(value = "流程ID")
	@Column(name = "flow_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '流程ID'")
	private String flowId;

	/**
	 * 匹配规则名称，与智脑平台传参对应
	 */
	@ApiModelProperty(value = "匹配规则名称，与智脑平台传参对应")
	@Column(name = "rule_name", columnDefinition = "varchar(50)  NOT NULL COMMENT '匹配规则名称，与智脑平台传参对应'")
	private String ruleName;

	/**
	 * 运算符
	 */
	@ApiModelProperty(value = "运算符")
	@Column(name = "operator", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '运算符' ")
	private String operator;

	/**
	 * 值域
	 */
	@ApiModelProperty(value = "值域")
	@Column(name = "range_value", columnDefinition = "varchar(50) DEFAULT NULL COMMENT '值域'")
	private String rangeValue;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(200) DEFAULT NULL COMMENT '备注'")
	private String remark;

}
